package priv.pront.code.national.acwing.base;

public class Template_bit {

//     查看n的二进制下面的第k位是多少
    public static void main(String[] args) {
        int n = 10;
        for (int k = 3; k >= 0; k--) {
            System.out.print((n >> k & 1) + " ");
        }
    }

    private static int lowbit(int n){
        return n & (-n);
    }
}
